package com.rt.tmpt.controller.filter;

import javax.servlet.*;
import java.io.IOException;

public class MyInfoCenterFilter implements Filter {
	
	public MyInfoCenterFilter() {
		super();
	}

	public void init(FilterConfig filterConfig) throws ServletException {}

	public void doFilter(ServletRequest request1, ServletResponse response1,
                         FilterChain filterChain) throws IOException, ServletException {
		/*
		try{
			HttpServletRequest request = (HttpServletRequest)request1;
			HttpServletResponse response = (HttpServletResponse)response1;
			
			String redirectUrl = "/front/myInfoCenter/myOrder.jsp";
			redirectUrl = request.getRequestURI().toString();
			CustomerDto customerDto = 
				WebUtils.isLogin(request.getSession(), response, request, redirectUrl, true);
			if(customerDto==null){
				return;
			}
			filterChain.doFilter(request1, response1);
			
		}catch(Exception e){
			e.printStackTrace();
		}
		*/
	}

	
	public void destroy() {}
	
	
}
